﻿
using HBase;
using MongoDB.Bson;
using MongoDB.Driver;
 
using System;
using System.Collections.Generic;

namespace hCommand.dto {
    public class LogDto :MongoPageDto {
        public string name { get; set; }
        public string urlName { get; set; }
        public int sysId { get; set; }

        public override FilterDefinition<BsonDocument> getRestrict() {
            BsonDocument bd = new BsonDocument();
            if( !String.IsNullOrEmpty(name) ) {
                 

                bd["param"] = "/ " + name + " / ";
            }
            if( !String.IsNullOrEmpty(urlName) ) {
                 
                    bd["urlName"] = "/ " + urlName + " / ";
            }

            if( sysId > 0 ) {
                bd["sysId"] = sysId;
                
            }





      



            return bd;

   
        }

    }
}